﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    public  class Supplier
    {
        public string SupplierID { get; set; }  //客户编号
        public string SupplierName { get; set; }//客户
        public string SpellingCode { get; set; }//拼音码
        public string Address { get; set; }     //地址
        public string ZipCode { get; set; }     //邮编
        public string Tel { get; set; }         //电话
        public string Fax { get; set; }         //传真
        public string BankName { get; set; }    //开户银行
        public string BankAccount { get; set; } //银行账号
        public string Contacter { get; set; }   //联系人
        public string Email { get; set; }       //电子邮箱
        public Supplier() { }
        public Supplier(string supplierID, string supplierName, string sellingCode, string tel, string address, string zipCode, string fax, string bankName, string bankAccount, string contacter, string email)
        {
            this.SupplierID  = supplierID ;
            this.SupplierName  = supplierName ;
            this.SpellingCode = sellingCode;
            this.Address = address;
            this.ZipCode = zipCode;
            this.Fax = fax;
            this.BankName = bankName;
            this.BankAccount = bankAccount;
            this.Contacter = contacter;
            this.Email = email;
            this.Tel = tel;

        }
        //public Contact ContactInfo { get; set; }//联系方式
        //public Supplier() { }
        //public Supplier(string supplierID, string supplierName)
        //{
        //    this.SupplierID = supplierID;
        //    this.SupplierName = supplierName;
        //}
        //public Supplier(Supplier c, Contact bo = null)//关联类
        //{
        //    this.SupplierID = c.SupplierID;
        //    this.SupplierName = c.SupplierName;
        //    if (bo != null)
        //    {
        //        this.ContactInfo = new Contact();
        //        this.ContactInfo.SpellingCode = bo.SpellingCode;
        //        this.ContactInfo.Address = bo.Address;
        //        this.ContactInfo.ZipCode = bo.ZipCode;
        //        this.ContactInfo.Tel = bo.Tel;
        //        this.ContactInfo.Fax = bo.Fax;
        //        this.ContactInfo.BankName = bo.BankName;
        //        this.ContactInfo.BankAccount = bo.BankAccount;
        //        this.ContactInfo.Contacter = bo.Contacter;
        //        this.ContactInfo.Email = bo.Email;
        //    }
        //}
    }
}
